package com.dot.core.res;

public enum ApiResultCode {
    // 操作成功标识
    SUCCESS(200, "Success"),
    // 系统异常标识
    SYS_ERROR(500, "当前网络不稳定，请稍后重试"),
    SKU_NOT_EXIST(10001, "SKU_NOT_EXIST"), //SKU不存在
    GOODS_ID_NOT_EXIST(10002, "GOODS_ID_NOT_EXIST"), //商品ID不存在
    CART_DEL_FAIL(10003, "CART_DEL_FAIL"), //购物车删除失败
    CART_DEL_FAIL_OUT(10004, "CART_DEL_FAIL_OUT"), //删除数量超出购物车添加数量的范围

            ;

    public Integer code;
    public String message;

    public String getCodeS() {
        return codeS;
    }

    public String codeS;

    ApiResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    ApiResultCode(String codeS, String message) {
        this.codeS = codeS;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
